<p-dialog header="{{title}}" [(visible)]="display" modal="modal" [responsive]="true" [width]="400" [minWidth]="200" (onHide)="closeRoleEditMask(false)">
  <div class="ui-grid ui-grid-responsive ui-grid-pad ui-fluid" style="margin: 10px 0px">
    <form [formGroup]="role">
      <div class="ui-grid-row margin-bottom-1vw">
        <div class="ui-grid-col-3">
          <label for="" >角色ID</label>
        </div>
        <div class="ui-grid-col-9" id="">
          <input class="cursor_not_allowed" type="text" formControlName="rid" pInputText [(ngModel)]="submitAddRole.rid" *ngIf="state ==='add'" readonly/>
          <input class="cursor_not_allowed" type="text" formControlName="rid" pInputText [(ngModel)]="currentOrg.rid" *ngIf="state ==='update'" readonly/>
        </div>
      </div>
      <div class="ui-grid-row margin-bottom-1vw">
        <div class="ui-grid-col-3">
          <label for="" >角色名称</label>
        </div>
        <div class="ui-grid-col-9" id="">
          <input class="cursor_not_allowed" type="text" formControlName="name" pInputText [(ngModel)]="submitAddRole.name" *ngIf="state ==='add'"/>
          <input class="cursor_not_allowed" type="text" formControlName="name" pInputText [(ngModel)]="currentOrg.name" *ngIf="state ==='update'"/>
        </div>
      </div>
      <div class="ui-grid-row margin-bottom-1vw">
        <div class="ui-grid-col-3">
          <label for="" >角色备注</label>
        </div>
        <div class="ui-grid-col-9" id="">
          <input class="cursor_not_allowed" type="text" formControlName="remark" pInputText [(ngModel)]="submitAddRole.remark" *ngIf="state ==='add'"/>
          <input class="cursor_not_allowed" type="text" formControlName="remark" pInputText [(ngModel)]="currentOrg.remark" *ngIf="state ==='update'"/>
        </div>
      </div>
      <div class="ui-grid-row margin-bottom-1vw">
        <div class="ui-grid-col-6"></div>
        <div class="ui-grid-col-3 padding-tblr">
          <button pButton type="submit" label="确认" (click)="formSubmit(false)"></button>
        </div>
        <div class="ui-grid-col-3 padding-tblr">
          <button pButton type="button" label="取消" (click)="closeRoleEditMask(false)"></button>
        </div>
      </div>
    </form>
  </div>
</p-dialog>
